Optimal. Leaf size=335 \[ -\frac {\text {Li}_2\left (\frac {2 \left (2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e-2 c (d+e x)\right )}{\left (-2 d c+2 c+b e-\sqrt {b^2-4 a c} e\right ) (d+e x+1)}+1\right )}{2 \sqrt {b^2-4 a c}}+\frac {\text {Li}_2\left (\frac {2 \left (2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e-2 c (d+e x)\right )}{\left (2 c (1-d)+\left (b+\sqrt {b^2-4 a c}\right ) e\right ) (d+e x+1)}+1\right )}{2 \sqrt {b^2-4 a c}}+\frac {\tanh ^{-1}(d+e x) \log \left (\frac {2 e \left (-\sqrt {b^2-4 a c}+b+2 c x\right )}{(d+e x+1) \left (e \left (b-\sqrt {b^2-4 a c}\right )+2 c (1-d)\right )}\right )}{\sqrt {b^2-4 a c}}-\frac {\tanh ^{-1}(d+e x) \log \left (\frac {2 e \left (\sqrt {b^2-4 a c}+b+2 c x\right )}{(d+e x+1) \left (e \left (\sqrt {b^2-4 a c}+b\right )+2 c (1-d)\right )}\right )}{\sqrt {b^2-4 a c}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.72, antiderivative size = 335, normalized size of antiderivative = 1.00, number of steps used = 12, number of rules used = 8, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.421, Rules used = {618, 206, 6728, 6111, 5920, 2402, 2315, 2447} \[ -\frac {\text {PolyLog}\left (2,\frac {2 \left (-e \left (b-\sqrt {b^2-4 a c}\right )-2 c (d+e x)+2 c d\right )}{(d+e x+1) \left (-e \sqrt {b^2-4 a c}+b e-2 c d+2 c\right )}+1\right )}{2 \sqrt {b^2-4 a c}}+\frac {\text {PolyLog}\left (2,\frac {2 \left (-e \left (\sqrt {b^2-4 a c}+b\right )-2 c (d+e x)+2 c d\right )}{(d+e x+1) \left (e \left (\sqrt {b^2-4 a c}+b\right )+2 c (1-d)\right )}+1\right )}{2 \sqrt {b^2-4 a c}}+\frac {\tanh ^{-1}(d+e x) \log \left (\frac {2 e \left (-\sqrt {b^2-4 a c}+b+2 c x\right )}{(d+e x+1) \left (e \left (b-\sqrt {b^2-4 a c}\right )+2 c (1-d)\right )}\right )}{\sqrt {b^2-4 a c}}-\frac {\tanh ^{-1}(d+e x) \log \left (\frac {2 e \left (\sqrt {b^2-4 a c}+b+2 c x\right )}{(d+e x+1) \left (e \left (\sqrt {b^2-4 a c}+b\right )+2 c (1-d)\right )}\right )}{\sqrt {b^2-4 a c}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 618
Rule 2315
Rule 2402
Rule 2447
Rule 5920
Rule 6111
Rule 6728
Rubi steps
\begin {align*} \int \frac {\tanh ^{-1}(d+e x)}{a+b x+c x^2} \, dx &=\int \left (\frac {2 c \tanh ^{-1}(d+e x)}{\sqrt {b^2-4 a c} \left (b-\sqrt {b^2-4 a c}+2 c x\right )}-\frac {2 c \tanh ^{-1}(d+e x)}{\sqrt {b^2-4 a c} \left (b+\sqrt {b^2-4 a c}+2 c x\right )}\right ) \, dx\\ &=\frac {(2 c) \int \frac {\tanh ^{-1}(d+e x)}{b-\sqrt {b^2-4 a c}+2 c x} \, dx}{\sqrt {b^2-4 a c}}-\frac {(2 c) \int \frac {\tanh ^{-1}(d+e x)}{b+\sqrt {b^2-4 a c}+2 c x} \, dx}{\sqrt {b^2-4 a c}}\\ &=\frac {(2 c) \operatorname {Subst}\left (\int \frac {\tanh ^{-1}(x)}{\frac {-2 c d+\left (b-\sqrt {b^2-4 a c}\right ) e}{e}+\frac {2 c x}{e}} \, dx,x,d+e x\right )}{\sqrt {b^2-4 a c} e}-\frac {(2 c) \operatorname {Subst}\left (\int \frac {\tanh ^{-1}(x)}{\frac {-2 c d+\left (b+\sqrt {b^2-4 a c}\right ) e}{e}+\frac {2 c x}{e}} \, dx,x,d+e x\right )}{\sqrt {b^2-4 a c} e}\\ &=\frac {\tanh ^{-1}(d+e x) \log \left (\frac {2 e \left (b-\sqrt {b^2-4 a c}+2 c x\right )}{\left (2 c-2 c d+b e-\sqrt {b^2-4 a c} e\right ) (1+d+e x)}\right )}{\sqrt {b^2-4 a c}}-\frac {\tanh ^{-1}(d+e x) \log \left (\frac {2 e \left (b+\sqrt {b^2-4 a c}+2 c x\right )}{\left (2 c (1-d)+\left (b+\sqrt {b^2-4 a c}\right ) e\right ) (1+d+e x)}\right )}{\sqrt {b^2-4 a c}}-\frac {\operatorname {Subst}\left (\int \frac {\log \left (\frac {2 \left (\frac {-2 c d+\left (b-\sqrt {b^2-4 a c}\right ) e}{e}+\frac {2 c x}{e}\right )}{\left (\frac {2 c}{e}+\frac {-2 c d+\left (b-\sqrt {b^2-4 a c}\right ) e}{e}\right ) (1+x)}\right )}{1-x^2} \, dx,x,d+e x\right )}{\sqrt {b^2-4 a c}}+\frac {\operatorname {Subst}\left (\int \frac {\log \left (\frac {2 \left (\frac {-2 c d+\left (b+\sqrt {b^2-4 a c}\right ) e}{e}+\frac {2 c x}{e}\right )}{\left (\frac {2 c}{e}+\frac {-2 c d+\left (b+\sqrt {b^2-4 a c}\right ) e}{e}\right ) (1+x)}\right )}{1-x^2} \, dx,x,d+e x\right )}{\sqrt {b^2-4 a c}}\\ &=\frac {\tanh ^{-1}(d+e x) \log \left (\frac {2 e \left (b-\sqrt {b^2-4 a c}+2 c x\right )}{\left (2 c-2 c d+b e-\sqrt {b^2-4 a c} e\right ) (1+d+e x)}\right )}{\sqrt {b^2-4 a c}}-\frac {\tanh ^{-1}(d+e x) \log \left (\frac {2 e \left (b+\sqrt {b^2-4 a c}+2 c x\right )}{\left (2 c (1-d)+\left (b+\sqrt {b^2-4 a c}\right ) e\right ) (1+d+e x)}\right )}{\sqrt {b^2-4 a c}}-\frac {\text {Li}_2\left (1-\frac {2 e \left (b-\sqrt {b^2-4 a c}+2 c x\right )}{\left (2 c-2 c d+b e-\sqrt {b^2-4 a c} e\right ) (1+d+e x)}\right )}{2 \sqrt {b^2-4 a c}}+\frac {\text {Li}_2\left (1-\frac {2 e \left (b+\sqrt {b^2-4 a c}+2 c x\right )}{\left (2 c (1-d)+\left (b+\sqrt {b^2-4 a c}\right ) e\right ) (1+d+e x)}\right )}{2 \sqrt {b^2-4 a c}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.57, size = 403, normalized size = 1.20 \[ \frac {-\text {Li}_2\left (\frac {2 c (d+e x-1)}{2 c (d-1)+\left (\sqrt {b^2-4 a c}-b\right ) e}\right )+\text {Li}_2\left (\frac {2 c (d+e x-1)}{2 c (d-1)-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )+\text {Li}_2\left (\frac {2 c (d+e x+1)}{2 c (d+1)+\left (\sqrt {b^2-4 a c}-b\right ) e}\right )-\text {Li}_2\left (\frac {2 c (d+e x+1)}{2 c (d+1)-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )+\log (-d-e x+1) \left (-\log \left (\frac {e \left (\sqrt {b^2-4 a c}-b-2 c x\right )}{e \left (\sqrt {b^2-4 a c}-b\right )+2 c (d-1)}\right )\right )+\log (-d-e x+1) \log \left (\frac {e \left (\sqrt {b^2-4 a c}+b+2 c x\right )}{e \left (\sqrt {b^2-4 a c}+b\right )-2 c (d-1)}\right )+\log (d+e x+1) \log \left (\frac {e \left (\sqrt {b^2-4 a c}-b-2 c x\right )}{e \left (\sqrt {b^2-4 a c}-b\right )+2 c (d+1)}\right )-\log (d+e x+1) \log \left (\frac {e \left (\sqrt {b^2-4 a c}+b+2 c x\right )}{e \left (\sqrt {b^2-4 a c}+b\right )-2 c (d+1)}\right )}{2 \sqrt {b^2-4 a c}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.61, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\operatorname {artanh}\left (e x + d\right )}{c x^{2} + b x + a}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.82, size = 2140, normalized size = 6.39 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {\mathrm {atanh}\left (d+e\,x\right )}{c\,x^2+b\,x+a} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________